package Day07.Demo03;

import java.util.Random;

/**
 * @author 韩映晖
 * @version 1.0
 * @date 2022/2/4 18:17
 */
public class Demo02Random {
    public static void main(String[] args) {
        Random r =new Random();
        for (int i = 0; i < 100; i++) {
            int num = r.nextInt(10);//实际上范围0~9;
            System.out.println("随机数是："+num);
        }
    }
}
